package com.atguigu.ssyx.sys.service.impl;

import com.atguigu.ssyx.model.sys.Ware;
import com.atguigu.ssyx.sys.mapper.WareMapper;
import com.atguigu.ssyx.sys.service.WareService;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 杨林
 * @create 2023-07-18 14:36 星期二
 * description:
 */
@Service
public class WareServiceImpl extends ServiceImpl<WareMapper, Ware> implements WareService {

    @Autowired
    private WareMapper wareMapper;
    
    /**
     * 查询所有区域
     * @return
     */
    @Override
    public List<Ware> findAllList() {
        List<Ware> wareList = wareMapper.selectList(new LambdaQueryWrapper<Ware>());
        return wareList;
    }
}
